import ThreeBase from './index'
import { onMounted } from 'vue';

const useThree = (id) => {
  let scene = null
  scene = new ThreeBase(id)
  onMounted(() => {
    console.log('mounted')
    scene.render()
  })
  return { scene }
}

export default useThree
